<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> arlicle guestbook plugin</title>
</head>
<body>
<br>使用说明:<br>Form的Action必须按照如下格式设置:action="<?php echo $html->admin_url('/manage_guestbook/add_guestbook?/leave_a_message/0/done/'); ?>其中?(问号)后面的地址必须设置,"/leave_a_message/0/done/"为提交留言成功后的跳转地址.

留言Input框按如下设置

          <tr>
            <td width="87" height="25" align="left"  style="padding-left:15px;">留言主题：</td>
            <td height="22" align="left"  style="padding-left:15px;"><?php echo $html->input('Guestbook/title', array('size'=>60)); ?>
              *</td>
          </tr>
          <tr>
            <td width="87" height="25" align="left"  style="padding-left:15px;">昵称：</td>
            <td height="22" align="left"  style="padding-left:15px;"><?php echo $html->input('Guestbook/author'); ?>
              *</td>
          </tr>
          <tr>
            <td width="87" height="25" align="left"  style="padding-left:15px;">联系方式：</td>
            <td height="22" align="left"  style="padding-left:15px;"><?php echo $html->input('Guestbook/author_contact', array('size'=>30)); ?>
              &nbsp;（可选）</td>
          </tr>
          <tr>
            <td width="87" height="25" align="left"  style="padding-left:15px;">留言内容：</td>
            <td height="22" align="left"  style="padding-left:15px;"><?php echo $html->textarea('Guestbook/content', array('rows'=>5, 'cols'=>60)); ?>
              *</td>
          </tr>

获取留言
<?php
$page = (int)url_get(1);
$results = get_all_guestbook($page, 'checked', "/leave_a_message/");
其中 /leave_a_message为分页的地址
?>

$results->results 为所有的留言
$results->pagelink 为留言的分页

<?php
foreach($results->results as $post) {
?>
        <tr>
          <td width="31" height="22" align="center" bgcolor="#FFFFFF"><?php echo $post->id; ?></td>
          <td align="left" bgcolor="#FFFFFF" style="padding-left:15px;"><?php echo $html->link($post->title,'/'); ?></td>
          <td width="100" align="center" bgcolor="#FFFFFF"><?php echo $post->author; ?></td>
          <td width="100" align="center" bgcolor="#FFFFFF"><?php echo $post->post_time; ?></td>
        </tr>
<?php
}
?>
        <tr>
          <td colspan="6" align="right" style="padding-right:20px;"><?php echo $results->pagelink; ?></td>
        </tr>
</body>
</html>
